SciChart WPF 2D Charts > ChartModifier API > Zooming And Panning > Combining Multiple Zoom Modifiers
Combining Multiple Zoom Modifiers

SciChart allows you to combine an unlimited number of ChartModifiers via the ModifierGroup type.

Combining Multiple Zoom Modifiers
Copy Code
<!-- where xmlns:s="http://schemas.abtsoftware.co.uk/scichart" -->
<s:SciChartSurface>
   <s:SciChartSurface.ChartModifier>
      <s:ModifierGroup>
         <s:RubberBandXyZoomModifier ExecuteOn="MouseLeftButton"/>
              <s:ZoomPanModifier ExecuteOn="MouseMiddleButton"/>
              <s:YAxisDragModifier/>
              <s:XAxisDragModifier/>
              <s:MouseWheelZoomModifier>
      </s:ModifierGroup>
   </s:SciChartSurface.ChartModifier>
</s:SciChartSurface>

NOTE: Certain modifiers will execute on the same mouse-button, for instance, the RubberBandXyZoomModifier and ZoomPanModifier both execute on Mouse Left-Button drag. To combine these two modifiers, either set the ExecuteOn property, or, set the IsEnabled property.